<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <!-- {
        "keywords": '',
        "host": "",
        "search_info":[
            {'book_name': "", "book_url": "", "book_author": "", "book_status": ""},
            ... ...
        ]

    }
    ''' -->

    <h1>搜索的关键字：{{result_dict.keywords}}</h1>
    <h2>搜索结果：{{result_dict.search_info|length}}</h2>

    <hr>

    <table border="1px">

        <tr>
            <th>书名</th>
            <th>作者</th>
            <th>状态</th>
        </tr>

        {%for i in result_dict.search_info%}

        <tr>
            <td><a href="{{url_for('api_book_info')}}?url={{i.book_url}}&host={{result_dict.host}}">{{i.book_name}}</a></td>
            <td>{{i.book_author}}</td>
            <td>{{i.status}}</td>
        </tr>


        {%endfor%}

    </table>






</body>

</html>